package com.mtw.bbs.fileAdmin.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mtw.bbs.common.core.vo.BaseFileVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 文件vo
 */

@Data
@ApiModel("文件VO")
@EqualsAndHashCode(callSuper = true)
public class FileVo extends BaseFileVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "视频信息")
    private VideoInfoVo video;


    /**
     * 文件原始名称
     */
    @ApiModelProperty(value = "文件原始名称")
    private String originName;


    /**
     * 文件MD5
     */
    @ApiModelProperty(value = "文件MD5")
    private String md5;


    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createdDate;


}
